#include "contourcontrol.h"
#include "contreeplugin.h"

using namespace PBVP;

ContourControl::ContourControl(ConTreePlugin *pConTree, QWidget *parent)
	: QDialog(parent)
{
	ui.setupUi(this);
	ui.isoValueEdit->setText(QString().setNum(pConTree->m_IsoVal));	
	ui.innerSelect->addItem("Negative");
	ui.innerSelect->addItem("Positive");
}

ContourControl::~ContourControl()
{

}

float ContourControl::getIsoValue() const
{
	return ui.isoValueEdit->text().toFloat();
}

int ContourControl::numOfContours() const
{
	return ui.numOfContours->value();
}

int ContourControl::innerRegion() const
{
	return ui.innerSelect->currentIndex();
}